package com.jy.web.diy.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jy.framework.base.BaseEntity;
import cn.afterturn.easypoi.excel.annotation.Excel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;

/**
 * 分类表
 *
 * @author JuiceYan
 * @email JuiceYan@jy.com
 * @date 2018-12-22 20:55:33
 */
@ApiModel(value = "分类表")
@TableName("diy_category")
@Getter
@Setter
public class CategoryEntity extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    @ApiModelProperty(value = "主键")
@Excel(name = "主键")
    private Long id;
    /**
     * 分类编码
     */
    @ApiModelProperty(value = "分类编码")
@Excel(name = "分类编码")
    private String code;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
@Excel(name = "排序")
    private Long orderNum;
    /**
     * 类型
     */
    @ApiModelProperty(value = "类型")
@Excel(name = "类型")
    private Integer type;
    /**
     * 图标
     */
    @ApiModelProperty(value = "图标")
@Excel(name = "图标")
    private String icon;
    /**
     * 控制该分类是否列表显示
     */
    @ApiModelProperty(value = "是否列表显示")
@Excel(name = "是否列表显示")
    private Integer isShow;
    /**
     * 控制该分类是否列表显示
     */
    @ApiModelProperty(value = "是否对外开放")
    @Excel(name = "是否对外开放")
    private Integer isOpen;
}
